/*****************************************************************************
**                                                                          **
**                         AMICCOM Proprietary Document                     **
**               Copyright (c) 2004-2016 AMICCOM Electronics Inc.           **
**                                                                          **
**                                                                          **
*****************************************************************************/
#ifndef _DEFINE_H_
#define _DEFINE_H_

#include <stdio.h>
#include <string.h>
//#include <intrins.h>

#define Sint8  signed   char
#define Uint8  unsigned char
#define Uint16 unsigned int
#define Uint32 unsigned long
#define Sint32 signed long
#define bit    _Bool

#define NO                  0
#define YES                 1

#define CALIBRATE_NUMBER    6

#define LOW                 0
#define HIGH                1

#define ON                  1
#define OFF                 0

//#define ENABLE              1
//#define DISABLE             0

#define MASTER				1
#define SLAVE				0

#define ONEWAY				0
#define TWOWAY				1

#define idata
#define data
#define code

#define _nop_()	nop()

#endif
